Tried to declare SUB within a SUB